package demo08;

import java.time.LocalDateTime;
import java.util.Scanner;

public class xunhuandemo08 {

    public static void main(String[] args) {

        Scanner sr = new Scanner(System.in);

        while (true) {

            System.out.println("请输入数字~~按n退出循环");
            String sc = sr.nextLine();

            if (sr.equals("n")) {

                break;
            } else {

                LocalDateTime now =LocalDateTime.now();
                System.out.println(now);
            }
        }
    }
}






